package com.etl.dataflow.scheduler.admin.entity.request;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    private String keyword;

    @NotNull
    @Min(1)
    private Integer currentPage;

    @NotNull
    @Max(100)
    private Integer pageSize;
}
